package com.cy.store.service;

import com.cy.store.entity.CartVO;

import java.util.List;

public interface ICartService {
    //将商品添加到购物车
    void addToCart(Integer uid, Integer pid, Integer amount, String username);

    //查询某用户的购物车数据
    List<CartVO> getVOByUid(Integer uid);

    //将购物车中某商品的数量加1
    Integer addNum(Integer cid, Integer uid, String username);

    //根据多个id获取信息
    List<CartVO> getVOByCids(Integer uid, Integer[] cids);

}
